kmpkg_from_gitee(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO kumo-pub/ngt
    REF "v${VERSION}"
    SHA512 4ba9db624d03fef3611a61dabffc6d44734709416b9b4fc1218475bca901c503d68d00a72cef7651649d563807e0ac49599a6d3d1cf1ea40c9ff5031acfb3ae1
    HEAD_REF master
)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
)

kmpkg_cmake_install(
    DISABLE_PARALLEL
)

kmpkg_copy_pdbs()
#kmpkg_cmake_config_fixup(PACKAGE_NAME ngt CONFIG_PATH lib/cmake/ngt)
kmpkg_fixup_pkgconfig()

kmpkg_copy_tools(TOOL_NAMES ngt AUTO_CLEAN)
kmpkg_copy_tools(TOOL_NAMES qbg AUTO_CLEAN)


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
